package com.example.server.trasaction;

import com.example.server.util.Task;
import lombok.Data;

/**
 * @Auther: yuanjianpeng
 * @Date: 2019/4/29 11:19
 * @Description: 事务管理器
 */
@Data
public class HaeTransactionModel {

    private String transactionId;
    private String groupId;
    private TransactionType transactionType;
    private Task task;

    public HaeTransactionModel(String transactionId, String groupId) {
        this.transactionId = transactionId;
        this.groupId = groupId;
        this.task = new Task();
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public TransactionType getTransactionType() {
        return transactionType;
    }

    public void setTransactionType(TransactionType transactionType) {
        this.transactionType = transactionType;
    }

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }
}
